<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich" xmlns:mumu="http://java.sun.com/jsf/composite">
    <h:form id="OperateFormEntity" prependId="false">
        <h:panelGrid columns="3" id="editOperateGroup" style="padding: 10px;">
            <h:panelGroup layout="block">
                <h:outputLabel style="color: red;" value="#{msg['asterisk']}"/>
                <h:outputText id="opnameLabel" value="#{msg['operate.name']}#{msg['colon']}"/>
            </h:panelGroup>
            <h:inputText id="opname" value="#{moduleBean.operate.operateName}"/>
            <rich:message for="opname"/>

            <h:panelGroup layout="block">
                <h:outputLabel style="color: red;" value="#{msg['asterisk']}"/>
                <h:outputText id="opsignLabel" value="#{msg['operate.sign']}#{msg['colon']}"/>
            </h:panelGroup>
            <h:inputText id="opsign" value="#{moduleBean.operate.operateSign}"/>
            <rich:message for="opsign"/>

            <h:panelGroup layout="block">
                <h:outputLabel style="color: red;" value="#{msg['asterisk']}"/>
                <h:outputText id="opurlLabel" value="#{msg['operate.url']}#{msg['colon']}"/>
            </h:panelGroup>
            <h:inputText id="opurl" value="#{moduleBean.operate.operateAction}"/>
            <rich:message for="opurl"/>

            <h:outputLabel id="opsortLabel"
                           value="#{msg['table.sort']}#{msg['colon']}"/>
            <h:inputText id="opsort" value="#{moduleBean.operate.sort}">
                <f:validateLongRange minimum="1" maximum="100"/>
            </h:inputText>
            <rich:message for="opsort"/>

        </h:panelGrid>
        <h:panelGroup layout="block" style="text-align: center;" id="OperateActionForm">
            <a4j:commandButton value="#{msg['action.save']}" action="#{moduleBean.saveOperate}"
                               render="roleList@body scroller" execute="editOperateGroup"
                               oncomplete="if (#{facesContext.maximumSeverity==null}) {PawnPopup.hide('rolePopupAdd')}"/>

            <a4j:commandButton value="#{msg['action.cancel']}" immediate="true" render="@none" execute="@none"
                               onclick="PawnPopup.hide('rolePopupAdd');"/>

        </h:panelGroup>
    </h:form>
</ui:composition>